function updateClueStatus(params) {

    const self = this;

    const law_std_sup_task = "ds_tbl:t_91f06a36e9df4bf0981df72a4a2417f2";
    api.EXEC_FORMULA("UPDATE('" + law_std_sup_task + "', QUERY_EQ('id', '" + params.id.value + "'), '', ['status', '" + 5 + "'])").then(() => {
        self.$message.success("办结成功!")
        let username = api.USER_INFO().name;

        let handleRecord = {
            replyId: params.id.value,
            recordType: 2,
            recordTitle: "督办办结",
            recordContent: `督办人员${username}办结了督办事项。`,
            relationReplyId: ""
        }
        insertHandleRecord(handleRecord).then(res => {
            console.log("res", "执行结果,修改成功！");
            let pageListEle = self.$$("page_widget_list_bam2io");
            // 获取列表渲染页实例
            const listRenderView = pageListEle.$$getRenderElement();
            // 获取当前显示的组件，表格或者卡片
            const currentListEle = listRenderView.$$getListElement();
            // 调用刷新方法
            currentListEle.$$refreshData();
        })


    }).catch(err => {
        self.$message.error(err.message); // 显示错误提示信息
    });
}

/**
 * 处理经过
 * @param recordData
 * @returns {Promise<unknown>}
 */
function insertHandleRecord(recordData) {

    const insertHandleRecords = [
        ['record_uid', 'UUID()'],
        ['relation_id', `'${recordData.replyId}'`],
        ['record_type', `'${recordData.recordType}'`],
        ['record_title', `'${recordData.recordTitle}'`],
        ['record_content', `'${recordData.recordContent}'`],
        ['create_time', 'NOW()'],
        ['create_human_id', 'USER_ID()'],
        ['relation_reply_id', `'${recordData.relationReplyId}'`]
    ];

    const formattedFields = insertHandleRecords.map(([key, value]) => {
        return `'${key}',${value}`;
    });

    const law_std_sup_handle_record = "ds_tbl:t_0ff47ea0e3a74ffdbc274409e7103e7e";
    const insertSql = `INSERT('${law_std_sup_handle_record}', [${formattedFields.join(',')}])`;
    console.log(insertSql);


    return new Promise((resolve, reject) => {
        api.EXEC_FORMULA(insertSql).then(res => {
            console.log(res);
            resolve(res);
        })
    })

}
